using System;
using System.Collections.Generic;
using Dict.DataModel;

namespace Dict.Dao
{
    public class TableCookingMakeLevelupDao:DaoBase<TableCookingMakeLevelup>
    {
        public override void AddPrimaryIndex(TableCookingMakeLevelup model)
        {
            cachePrimary[model.level.ToString()] = model;
        }

        public override string GetFileName()
        {
            return "TableCookingMakeLevelup.txt";
        }

        protected override TableCookingMakeLevelup ParseRowData(string[] rowData)
        {
            TableCookingMakeLevelup data = new TableCookingMakeLevelup();
			data.level = rowData [0];

            if (string.IsNullOrEmpty(rowData[1]))
            {
                data.exp = 0;
            }
            else
            {
                data.exp = int.Parse(rowData[1]);
            }

            return data;
        }



    }

}
